import { fileURLToPath, URL } from 'node:url'

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
// outputDir:'../src/main/resources/static',
export default defineConfig(({ command, mode, build, ssrBuild })=>{
  return {
    build:{
      outDir:'../src/main/resources/static'
    },
    plugins: [
      vue(),
    ],
    resolve: {
      alias: {
        '@': fileURLToPath(new URL('./src', import.meta.url))
      },
      outDir:'../src/main/resources/static',
    }
  }
})
